<?php
use Phalcon\Di;

return array(
    'limit' => array(
        'label' => '获取数量',
        'error' => '',
        'default' => 10,
        'userOptions' => [],
        'description' => '',
        'widget' => 'Numeric',
        'validate' => [],
        'filter' => array('striptags'),
        'attributes' => array(
            'class' => 'form-control',
        ),
        'required' => true,
    ),
    'termContentModel' => array(
        'label' => '内容类型',
        'error' => '',
        'userOptions' => [],
        'description' => '',
        'widget' => 'Selects',
        'options' => Di::getDefault()->getShared('entityManager')->contentModelOptions('term'),
        'validate' => [],
        'filter' => array('striptags'),
        'attributes' => array(
            'class' => 'form-control',
        ),
        'required' => false,
    ),
    'sort' => array(
        'label' => '检索排序',
        'error' => '',
        'description' => '以哪种方式排序内容',
        'widget' => 'Select',
        'options' => [
            'hot' => '热门标签',
            'created' => '创建时间',
        ],
        'validate' => [],
        'filter' => array('striptags'),
        'attributes' => array(
            'class' => 'form-control',
        ),
        'required' => true,
    ),
);
